﻿namespace HCRS.Implementation
{
    using HCRS.BusinessEntities;
    using HCRS.DataType;
    using System;

    /// <summary>
    /// 酒店预订引擎转换类
    /// </summary>
    public class TranslateCRMHotelDomain
    {
        public HCRS.DataType.CRMHotelDomain EntitiesToType(HCRS.BusinessEntities.CRMHotelDomain from)
        {
            return new HCRS.DataType.CRMHotelDomain { id = from.id, property_id = from.property_id, webdomain = from.webdomain, noscroll = from.noscroll, RateCode = from.RateCode, css = from.css, sloganResv = from.sloganResv, sloganMod = from.sloganMod, sloganCxl = from.sloganCxl, sloganNewResv = from.sloganNewResv, EmailFrom = from.EmailFrom, EmailAlias = from.EmailAlias, EmailTitle = from.EmailTitle, languagetype = from.languagetype };
        }

        public HCRS.BusinessEntities.CRMHotelDomain TypeToEntities(HCRS.DataType.CRMHotelDomain from)
        {
            return new HCRS.BusinessEntities.CRMHotelDomain { id = from.id, property_id = from.property_id, webdomain = from.webdomain, noscroll = from.noscroll, RateCode = from.RateCode, css = from.css, sloganResv = from.sloganResv, sloganMod = from.sloganMod, sloganCxl = from.sloganCxl, sloganNewResv = from.sloganNewResv, EmailFrom = from.EmailFrom, EmailAlias = from.EmailAlias, EmailTitle = from.EmailTitle, languagetype = from.languagetype };
        }
    }
}

